#ifndef NEWEXPENSE_H
#define NEWEXPENSE_H
#include<QDate>
#include <QMainWindow>
#include"expense.h"
#include"db_class.h"

namespace Ui {
    class NewExpense;
}

class NewExpense : public QMainWindow
{
    Q_OBJECT

public:
    explicit NewExpense(QWidget *parent = 0);
    ~NewExpense();

private:
    Ui::NewExpense *ui;
    db_class db;
    QDate dt;

private slots:
    void on_dateEdit_dateChanged(QDate date);
    void on_save_clicked();

    void back();
};

#endif // NEWEXPENSE_H




